class Person{
    public String name;
    public int age;

    public void eat(){
        System.out.println(name+"正在吃饭！");
    }

    public void print(){
        System.out.println("姓名：" + name + "年龄" + age);
    }
}



public class TestDemo {

    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);
        System.out.println(person.age);
    }
}
